home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
GRAP_PCX
/
COPPCX4.LZH
/
EXTRACT.BAT
next >
Wrap
DOS Batch File
|
1990-10-31
|
1KB
|
35 lines
echo off
CLS
IF %1 !==! GOTO EXPLAIN
IF %2 !==! GOTO EXPLAIN
%2
CD %3
%1
GOTO END
:EXPLAIN
ECHO EXTRACT.BAT DISSOLVES LHARC .COM AND .EXE FILES TO THE DRIVE AND
ECHO SUBDIRECTORY YOU DEFINE.
ECHO SYNTAX IS: EXTRACT SOURCEDRIVE:FILENAME TARGETDRIVE: \TARGET SUBDIRECTORY
ECHO EXAMPLE #1 EXTRACT A:CAPCX12 B:
ECHO (EXTRACTS THE FILE CAPCX12 FROM A:DRIVE TO B:DRIVE)
ECHO EXAMPLE #2: EXTRACT B:\PCIMG09 C: \IMGFILES
ECHO (EXTRACTS THE FILE PCIMG09 FROM B:DRIVE TO C:DRIVE\IMGFILES SUBDIRECTORY)
ECHO EXAMPLE #3: EXTRACT C:\GRAPHICS\CGMSP03 D: \WINDOWS\FILES
ECHO (EXTRACTS THE FILE CGMSP03 FROM C:DRIVE\GRAPHICS SUBDIRECTORY
ECHO TO D:DRIVE\WINDOWS\FILES SUBDIRECTORY)
ECHO BE SURE THE TARGET DRIVE CONTAINS A FORMATTED DISK.
ECHO BE SURE TO INCLUDE ALL COLONS AND ANY BACKSLASHES IN YOUR CALLS.
ECHO DO NOT INCLUDE THE FILENAME EXTENSION IN YOUR CALLS.
ECHO THERE MUST BE A SPACE BETWEEN THE TARGET DRIVE: AND ANY TARGET
ECHO SUBDIRECTORY CALLS. (THIS CALL IS OPTIONAL)
:END
ECHO